

package com.cmcc.pcap.packet.sctp.nas.impl.ies;


import com.cmcc.pcap.packet.sctp.nas.core.ies.InformationElement3;
import com.cmcc.pcap.packet.sctp.nas.utils.OctetInputStream;
import com.cmcc.pcap.packet.sctp.nas.utils.OctetOutputStream;
import com.cmcc.pcap.packet.sctp.nas.utils.octets.OctetString;

public class IEAuthenticationParameterRand extends InformationElement3 {
    public OctetString value;

    public OctetString getValue() {
        return value;
    }

    public IEAuthenticationParameterRand() {
    }

    public IEAuthenticationParameterRand(OctetString value) {
        this.value = value;
    }

    @Override
    protected InformationElement3 decodeIE3(OctetInputStream stream) {
        IEAuthenticationParameterRand res = new IEAuthenticationParameterRand();
        res.value = stream.readOctetString(16);
        return res;
    }

    @Override
    public void encodeIE3(OctetOutputStream stream) {
        stream.writeOctetString(value);
    }
}
